package com.neusoft.tijiancms.mapper;

import com.neusoft.tijiancms.po.Doctor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DoctorMapper {
    /**
     * 根据医生编码和密码进行登录
     * @param doctor
     * @return
     */
    @Select("SELECT * FROM doctor WHERE docCode=#{docCode} AND password=#{password}")
    public Doctor getDoctorByCodeByPass(Doctor doctor);
}
